﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdmStuManage.aspx.cs" Inherits="LIMS.Web.AdmStuManage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="jQuery/jquery-1.9.1.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#btnFind").click(function () {
                if ($.trim($("#txtStudentName").val()).length == 0) {
                    document.getElementById("mesEmptyError").innerText = "必须填写教师姓名";
                    return false;
                }
                return true;
            });
        })
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div align="center">
        <table border="0" cellspacing="0" cellpadding="0" style="width: 770px;">
            <tr>
                <td>
                </td>
                <td style="width: auto; font-weight: bold; color: #000000; font-size: 36px; height: 30;
                    text-align: center">
                    学生管理
                </td>
            </tr>
            <tr style="font-size: 12pt; color: #000000;">
                <td>
                </td>
                <td style="width: 700px; text-align: left; font-size: 15pt; color: #000000; text-align: left;">
                    <div style="float: left; width: 250px; font-size: 22px; height: 33px; float: left;">
                        学生姓名
                        <input id="txtStudentName" type="text" runat="server" style="width: 147px; height: 30px;" />
                    </div>
                    <div style="margin-left: 280px;">
                        <asp:Button ID="btnFind" runat="server" Text="搜 索" OnClick="btnFind_Click" BorderColor="Aquamarine"
                            Font-Size="15" />
                        &nbsp;&nbsp;&nbsp;
                        <asp:Button ID="btnStudentdmin" runat="server" Text="添 加" OnClick="btnAddAdmin_Click"
                            BorderColor="Aquamarine" Font-Size="15" />
                             &nbsp;&nbsp;&nbsp;
                    <asp:Button ID="btnFlush" runat="server" Text="刷 新" OnClick="btnFlushAdmin_Click"
                        BorderColor="Aquamarine" Font-Size="15" />
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td align="left">
                    <div id="mesEmptyError" style="width: 200px; margin-left: 100px; color: Red;" runat="server">
                    </div>
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center" style="height: 27px">
                    <br />
                    <asp:Repeater ID="rpStudent" runat="server" OnItemDataBound="rpStudent_OnItemDataBound"
                        OnItemCommand="rpStudent_ItemCommand">
                        <HeaderTemplate>
                            <table border="1" width="100%">
                                <tr align="center">
                                    <th>
                                        序号
                                    </th>
                                    <th>
                                        姓名
                                    </th>
                                    <th>
                                        性别
                                    </th>
                                    <th>
                                        学号
                                    </th>
                                    <th>
                                        登陆密码
                                    </th>
                                    <th>
                                        班级简称
                                    </th>
                                </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr align="center">
                                <td>
                                    <%#Container.ItemIndex+1 %>
                                </td>
                                <td>
                                    <%#Eval("stuName")%>
                                </td>
                                <td>
                                    <%#Eval("stuGender")%>
                                </td>
                                <td>
                                    <%#Eval("stuNo")%>
                                </td>
                                <td>
                                    <%#Eval("stuPwd")%>
                                </td>
                                <td>
                                    <%--<%#Eval("classID")%>--%>
                                 <%#GetGradeNameByID(Eval("classID").ToString())%>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </table>
                        </FooterTemplate>
                    </asp:Repeater>
                    <br />
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CustomInfoHTML="总记录数:%RecordCount%, 总页数:%PageCount%, 当前为第 %CurrentPageIndex% 页"
                        FirstPageText="<<" LastPageText=">>" LayoutType="Div" NextPageText=">" NumericButtonCount="6"
                        PageIndexBoxType="DropDownList" PageSize="3" PrevPageText="<" ShowNavigationToolTip="true"
                        PagingButtonSpacing="6px" ShowCustomInfoSection="Right" OnPageChanged="AspNetPager1_PageChanged"
                        Font-Size="12px" HorizontalAlign="Center" Width="100%" AlwaysShow="true" CustomInfoSectionWidth="40%">
                    </webdiyer:AspNetPager>
                    <br />
                    &nbsp;
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
